home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / taropyon / install / instkok2.c < prev    next >
Text File  |  1994-11-16  |  2KB  |  86 lines

  1.  
  2. int        _call_gsplay( char *para);
  3.  
  4. char    *get_inst_gsplaydata_mnu()
  5. {
  6.     char    *mnu;
  7.  
  8.     if ( (mnu = MNU_open()) == NULL )
  9.         return (NULL);
  10.     MNU_datAdd( mnu, 0, 'D', Rom16x16, 0, "install_demodemo", 0, "DEMODEMO");
  11.     MNU_datAdd( mnu, 0, 'F', Rom16x16, 0, "install_fdoal"   , 0, "フランス人形とプードル");
  12.     MNU_datAdd( mnu, 0, 'T', Rom16x16, 0, "install_trainm"  , 0, "走れ汽車ぽっぽ");
  13.     return (mnu);
  14. }
  15.  
  16. int        install_demodemo()
  17. {
  18.     static char    *buf[5] =
  19.     {
  20.         "softname    \"DEMODEMO\"",
  21.         "instfile    /TAROPYON/HORIKEN/DEMODEMO    \"*.*\"",
  22.         "help        demodemo.ggg",
  23.         "demo        \"再生\"    _gsplay_demodemo",
  24.         NULL
  25.     };
  26.  
  27.     return install_exec(buf);
  28. }
  29. int        _gsplay_demodemo()
  30. {
  31.     return _call_gsplay( "../HORIKEN/DEMODEMO/demodemo.mid" );
  32. }
  33.  
  34.  
  35. int        install_fdoal()
  36. {
  37.     static char    *buf[5] =
  38.     {
  39.         "softname    \"フランス人形とプードル\"",
  40.         "instfile    /TAROPYON/HORIKEN/FDOAL    \"*.*\"",
  41.         "help        fdoal.ggg",
  42.         "demo        \"再生\"    _gsplay_fdoal",
  43.         NULL
  44.     };
  45.  
  46.     return install_exec(buf);
  47. }
  48. int        _gsplay_fdoal()
  49. {
  50.     return _call_gsplay( "../HORIKEN/FDOAL/fdoal.mid" );
  51. }
  52.  
  53. int        install_trainm()
  54. {
  55.     static char    *buf[5] =
  56.     {
  57.         "softname    \"走れ汽車ぽっぽ\"",
  58.         "instfile    /TAROPYON/HORIKEN/TRAINM    \"*.*\"",
  59.         "help        trainm.ggg",
  60.         "demo        \"再生\"    _gsplay_trainm",
  61.         NULL
  62.     };
  63.  
  64.     return install_exec(buf);
  65. }
  66. int        _gsplay_trainm()
  67. {
  68.     return _call_gsplay( "../HORIKEN/TRAINM/trainm.mid" );
  69. }
  70.  
  71. int        _call_gsplay( char *para)
  72. {
  73.     char    tmp[256], fn_gsplay[256], fn_mid[256], para_gsplay[256];
  74.  
  75.     FS_chdrv(toupper(DirStart[0]) - 'A');
  76.     sprintf(tmp, "%s../%s", DirStart, "GSPLAY/gsplay.exp");
  77.     FS_getFullPn(fn_gsplay,tmp);
  78.     sprintf(tmp, "%s../HORIKEN/%s", DirStart, para);
  79.     FS_getFullPn(fn_mid   ,tmp);
  80.     sprintf(para_gsplay,"-quick %s",fn_mid);
  81.  
  82.     exprun(fn_gsplay, para_gsplay);
  83.  
  84.     return (0);
  85. }
  86.